<template>
  <tui-upload @getFileId='getFileId' :serverUrl="serverUrl" @complete="result" @remove="remove"></tui-upload>
</template>

<script>
  // data 数据 及 方法
  export default {
    data() {
      return {
        //上传接口地址，此处需换成自己的接口地址，示例接口地址已关闭
        serverUrl: 'http://192.168.1.127:8086/project-lot/uploadProjectLotAttach',
        imageList: []
      }
    },
    methods: {
      result: function(e) {
        console.log(e)
        this.imageData = e.imgArr;
      },
      remove: function(e) {
        //移除图片
        console.log(e)
        let index = e.index
      },
      getFileId:function(value){
        console.log(value);
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>